<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="../../../common/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<jsp:include page="../../../common/head.jsp">
			 <jsp:param name="_spPage" value="true"/>
		</jsp:include>

		<title>组织结构管理</title>
		<script language="JavaScript">   
		//选择岗位
		function onCkSelectData(str)
		{
			window.top.returnValue = str;
 			window.top.close();	
		}
	</script>
	</head>
	<body>
	<form action="listOrganization.do?toJsp=/jsp/common/organization/lst_organization.jsp" name="from1" method="post">
	<div id="body_div">
	<w:ShowTitle name="岗位查询">
		<w:TitleButton funcName="选择" onClickFunction="onCkSelectData()" urlImg="${ctx}/images/main/add.png"/>
		<w:TitleButton funcName="查询" onClickFunction="_queryDivBg(this)" urlImg="${ctx}/images/main/query.png"/>
	</w:ShowTitle>
	<div id="body_content">
				<div id="queryDiv">
				<table width="100%" border="0">
					<tr>
						<td colspan="4" class="td_title">
							组织结构查询
						</td>
					</tr>
					<tr>
						<td>
							组织结构ID
						</td>
						<td class="left_align">
							<input name="orgId" type="text" value="${orgId}"/>
							<input name="orgPid" type="hidden" value="${orgPid}"/>
						</td>
						<td>
							组织结构名称
						</td>
						<td class="left_align">
							<input name="orgName" type="text" value="${orgName}"/>
						</td>
					</tr>
					<tr>
						<td colspan="4">
							<input name="button" type="submit" class="btn_standard" value="　查 询　" />
							<input name="button" type="button" class="btn_standard" onclick="_cancelQuery()" value="取消" />
						</td>
					</tr>
				</table>
				</div>	
				<table width="100%" class="listTable">
					<tr>
						<td width="40" class="td_title">操作</td>
						<td width="80" class="td_title">机构ID</td>
						<td class="td_title" >组织机构名称</td>
						<td class="td_title" width="120">组织机构编码</td>
						<td class="td_title" width="120">所属系统</td>
						<td class="td_title" width="120">组织结构类型</td>
						<td class="td_title" width="120">组织机构层级</td>
					</tr>
					<c:forEach items="${datalist}" var="obj">
						<tr>
							<td><a href="#" onclick="onCkSelectData('${obj.postId},${obj.postName},${po.orgId},${po.orgName},${unitPo.orgId},${unitPo.orgName}')" >选择</a></td>
							<td>${obj.orgId}</td>
							<td>${obj.orgName}</td>
							<td>${obj.orgCode}</td>
							<td><w:CodeDictOut value="${obj.belongsSystem}"></w:CodeDictOut></td>
							<td><w:CodeDictOut value="${obj.orgType}"></w:CodeDictOut></td>
							<td><w:CodeDictOut value="${obj.orgLevel}"></w:CodeDictOut></td>
						</tr>
					</c:forEach>
				</table>
				<w:spPage />
			</div>
		</div>	
		</form>
	</body>
</html>